<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="/tld/dictionary" prefix="dictionary"%>
<%@ taglib uri="/tld/flowdictionary" prefix="flowdictionary"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link rel="stylesheet" href="${ctx}/static/css/style.css" type="text/css" /> 
<link rel="stylesheet" href="${ctx}/static/css/style1.css" type="text/css" /> 
<link rel="stylesheet" href="${ctx}/static/css/kongjian.css" type="text/css" /> 
<link rel="stylesheet" href="${ctx}/static/css/jquery.ui.all.css" type="text/css"/>
<link rel="stylesheet" href="${ctx}/static/css/thickbox.css" type="text/css"/>
<script src="${ctx}/static/script/jquery-1.4.min.js" type="text/javascript"></script>
<script src="${ctx}/static/script/jquery.ui.core.js" type="text/javascript"></script>
<script src="${ctx}/static/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="${ctx}/static/script/js_validator.js" type="text/javascript"></script>
<script src="${ctx}/static/script/thickbox.js" type="text/javascript"></script>
<script src="${ctx}/static/script/jsCoreUtil.js" type="text/javascript"></script>
<title>账单列表</title>
</head>

<body>
<form:form id="mainForm" action="${ctx}/statement/statement_list" modelAttribute="statementListForm" method="post">
<div class="er_banner">账单列表</div>	
   <div class="shenqing2">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="61">出借编号：</td>
            <td width="150px" style="color:#2E74D1;">
            	<input type="text" class="ggkj_inputtext_80" id="lendingNo" name="lendingNo"  value="${statementListForm.lendingNo}" /></td>
            <td width="85">客户姓名：</td>
            <td width="150px" style="color:#2E74D1;">
            	<input type="text" class="ggkj_inputtext_80" id="customerName" name="customerName"  value="${statementListForm.customerName}"  />
            </td>
			<td width="85">客户编号：</td>
            <td width="150px" style="color:#2E74D1;">
            	<input type="text" class="ggkj_inputtext_80" id="customerCode" name="customerCode"  value="${statementListForm.customerCode}" />
            </td>
			<td width="85">账单日期：</td>
            <td width="250px" style="color:#2E74D1;">
            	<input type="text" class="ggkj_inputtext_80" id="proDate" name="proDate"  value="${statementListForm.proDate}" onClick="WdatePicker()" readonly="true" />
            </td>
			<td width="85">资金出借方式：</td>
            <td width="250px" style="color:#2E74D1;">
            	<select id="productCode"  name="productCode">
            		<option value="">请选择</option>
	            	<dictionary:options type="0014" selectedValue="${statementListForm.productCode}"/>
				</select>
            </td>
			 <td width="93"><input name="Input" type="submit" class="chaxun_btn" value="&nbsp;&nbsp;查询" />
             </td>
          </tr>
      </table>
    </div>
<div class="yiban">
	<table style="width:100%;" class="ggkj_table"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="col">客户姓名</th>
    <th scope="col">客户编号</th>
    <th scope="col">出借编号</th>
    <th scope="col">资金出借方式</th>
    <th scope="col">初始出借日期</th>
    <th scope="col">账单日期</th>
    <th scope="col">初始出借金额</th>
    <th scope="col">报告日期</th>
    <th scope="col">报告日资产总额</th>
    <th scope="col">报告期内还款金额</th>
    <th scope="col">上一个报告日资产总额</th>
    <th scope="col">账户管理费率</th>
	<th scope="col">账户管理费</th>
	<th scope="col">报告日受让的债权金额</th>
	<th scope="col">操作</th>
  </tr>
  <c:forEach items="${page.result}" var="item" varStatus="stauts">
  
	<c:if test="${stauts.count%2==0}">
		<tr class="ggkj_tdColr">
	</c:if>
	<c:if test="${stauts.count%2!=0}">
		<tr >
	</c:if>
    <td>${item.investInfo.customerInfo.cnName}</td>
    <td>${item.investInfo.customerInfo.customerCode}</td>
    <td>${item.investInfo.customerInfo.customerCode}${item.investInfo.lendingNo}</td>
    <td><dictionary:display code="${item.investInfo.productType}"/></td>
    <td><fmt:formatDate value="${item.investInfo.investStartDate}"   pattern="yyyy-MM-dd" type="date" dateStyle="long" /></td>
    <td><fmt:formatDate value="${item.billDate}"  pattern="yyyy-MM-dd" type="date" dateStyle="long" /></td>
    <td><fmt:formatNumber value="${item.investAmt}" pattern="##,###.##"/></td>
    <td><fmt:formatDate value="${item.billDate}"  pattern="yyyy-MM-dd" type="date" dateStyle="long" /></td>
    <td><fmt:formatNumber value="${item.billAmt}" pattern="##,###.##"/></td>
    <td><fmt:formatNumber value="${item.actRecAmt}" pattern="##,###.##"/></td>
    <td><fmt:formatNumber value="${item.bBillAmt}" pattern="##,###.##"/></td>
	<td>${item.accountManageFee.rate*item.manageFeeDiscount}</td>
    <td><fmt:formatNumber value="${item.managerAmt}" pattern="##,###.##"/></td>
    <td><fmt:formatNumber value="${item.orderLoanAmt}" pattern="##,###.##"/></td>
    <td><a href="#">导出</a></td>
  </tr>
  </c:forEach>
</table>
</div>
<div class="ggkj_pagecontainer">
  <div class="ggkj_pageBGleft">
    	<span class="ggkj_pageBGright"></span>
    	<a href="javascript:jumpPage(1)" class="ggkj_pageUpa">
        
        </a>
        <a href="javascript:jumpPage(${page.prePage})" class="ggkj_pageUp">
        
        </a>
        <span class="ggkj_insertline"></span>
        <span class="ggkj_pageSpan">
        	页<input type="text" id="pageNo" name="pageNo" class="ggkj_inputtext_30" value="${page.pageNo}">OF ${page.totalPages}
        </span>
        <span class="ggkj_insertline"></span>
        <a href="javascript:jumpPage(${page.nextPage})" class="ggkj_pageDown">
        
        </a>
        <a href="javascript:jumpPage(${page.totalPages})" class="ggkj_pageDowna">
        
        </a>
        <span class="ggkj_insertline"></span>
    </div>
</div>
</form:form>
</body>
</html>
